package io.renren.modules.origin.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.origin.dao.OriginDao;
import io.renren.modules.origin.entity.OriginEntity;
import io.renren.modules.origin.service.OriginService;
@Service("originService")
public class OriginServiceImpl extends ServiceImpl<OriginDao, OriginEntity> implements OriginService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OriginEntity> page = this.page(
                new Query<OriginEntity>().getPage(params),
                new QueryWrapper<OriginEntity>()
        );
        return new PageUtils(page);
    }

}